ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / ComObject Class / QueryInterfaceOrNull Method / QueryInterfaceOrNull<T>(IntPtr) Method
The type of the COM interface to query
A pointer to a COM object.

In This Topic
    QueryInterfaceOrNull<T>(IntPtr) Method
    In This Topic
    Queries a managed object for a particular COM interface support.
    Syntax
    'Declaration
     
    Public Overloads Shared Function QueryInterfaceOrNull(Of T As ComObject)( _
       ByVal comPointer As IntPtr _
    ) As T
    public static T QueryInterfaceOrNull<T>( 
       IntPtr comPointer
    )
    where T: ComObject

    Parameters

    comPointer
    A pointer to a COM object.

    Type Parameters

    T
    The type of the COM interface to query

    Return Value

    An instance of the queried interface
    See Also